package ji_tv;

public class TCL_tv_diaoyongfulei extends  Televison {
    boolean cloud;
    Televison televison=new Televison();
    TCL_tv_diaoyongfulei(){}
    TCL_tv_diaoyongfulei(boolean cloud, String brand, byte size)
    {
        this.brand=brand;
        this.size=size;
        this.cloud=cloud;
    }
@Override
    void  output()
{
    if(cloud==false)
    {
//        调用父类的方法　　　ｓｕｐｅｒ
       super.output();
    }
    else
    {
        System.out.println("子类方法电视机牌子"+brand+"尺寸是"+size);
        System.out.println("电视机是不是云电视"+cloud);
    }
}

}
